package lightrain.db;

import java.util.ArrayList;
import java.util.List;

public class Pager<M> {
	
	private Integer page = 1;
	
	private Integer size = 15;
	
	private Integer pageTotal;
	
	private Integer total;
	
	private List<M> data = new ArrayList<M>();

	public Pager(Integer page, Integer size, Integer total, List<M> data) {
		super();
		this.page = page;
		this.size = size;
		this.total = total;
		this.data = data;
	}

	public Pager(Integer page, Integer total, List<M> data) {
		super();
		this.page = page;
		this.total = total;
		this.data = data;
	}

	public Pager() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public Integer getPageTotal() {
		return pageTotal;
	}

	public void setPageTotal(Integer pageTotal) {
		this.pageTotal = pageTotal;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public List<M> getData() {
		return data;
	}

	public void setData(List<M> data) {
		this.data = data;
	}
	
	
	
}
